<?xml version="1.0"?>
<#import "root://activities/common/kotlin_macros.ftl" as kt>
<recipe>

    <@kt.addAllKotlinDependencies />
    <#if generateKotlin && useAndroidX>
        <dependency mavenUrl="androidx.lifecycle:lifecycle-viewmodel-ktx:1.+"/>
    </#if>



    <instantiate from="root/src/app_package/Fragment.${ktOrJavaExt}.ftl"
                   to="${escapeXmlAttribute(srcOut)}/${fragmentPackage?replace('.', '/')}/${fragmentClass}.${ktOrJavaExt}" />
				   
    <open file="${escapeXmlAttribute(srcOut)}/${fragmentPackage?replace('.', '/')}/${fragmentClass}.${ktOrJavaExt}" />
	
    <instantiate from="root/src/app_package/ViewModel.${ktOrJavaExt}.ftl"
                   to="${escapeXmlAttribute(srcOut)}/${viewModelPackage?replace('.', '/')}/${viewModelClass}.${ktOrJavaExt}" />
    <open file="${escapeXmlAttribute(srcOut)}/${viewModelPackage?replace('.', '/')}/${viewModelClass}.${ktOrJavaExt}" />


    <instantiate from="root/res/layout/fragment.xml.ftl"
                   to="${escapeXmlAttribute(resOut)}/layout/${escapeXmlAttribute(fragmentLayout)}.xml" />
    <open file="${escapeXmlAttribute(resOut)}/layout/${fragmentLayout}.xml" />


    <instantiate from="root/src/app_package/Adapter.${ktOrJavaExt}.ftl"
                   to="${escapeXmlAttribute(srcOut)}/${adapterPackage?replace('.', '/')}/${adapterClass}.${ktOrJavaExt}" />
				   
    <open file="${escapeXmlAttribute(srcOut)}/${adapterPackage?replace('.', '/')}/${adapterClass}.${ktOrJavaExt}" />
	

    <instantiate from="root/res/layout/item.xml.ftl"
                   to="${escapeXmlAttribute(resOut)}/layout/${escapeXmlAttribute(itemLayout)}.xml" />
    <open file="${escapeXmlAttribute(resOut)}/layout/${itemLayout}.xml" />
	


</recipe>
